<template>
	<div class="admin">
		<mainHeader></mainHeader>
		<el-row class="tac">
			<Horselight :identityType="identityType"></Horselight>
			<el-col :span="21" style="padding: 0 20px;">
				<router-view :identityType.sync="identityType"></router-view>
			</el-col>
		</el-row>
	</div>
</template>
<script>
	import mainHeader from '@/components/v-header'
	import Horselight from '@/components/v-horselight'
	export default {
		created(){
			// console.log( "vuex",this.$store.state.accToken);
			// let storeData = JSON.parse(sessionStorage.getItem('store'))
			// console.log( "缓存",storeData.accToken);
			if(this.$store.state.accToken == '' || this.$store.state.accToken == undefined ){
				//console.log('未登录');
				this.$router.push('login');
				
			}
		},
		name: 'v-main',
		data() {
			return {
				bool: null,
				identityType:'advert',		//身份类型 advert(广告) medium(媒介)
			}
		},
		props: {
			msg: String
		},
		methods: {

		},
		components: {
			mainHeader,
			Horselight
		},
		watch: {


		},
		computed:{
		   // orderList() {
		   //     // return this.$store.state.orderList
		   // }
		},
		mounted: function() {
			// console.log(this.$route.path)
		}
	}
</script>
<style scoped>
	.tac {
		background: #f6f6f6;
		box-shadow: 0 5px 10px #ddd inset;
	}
	@import url("../assets/css/common.css");
	@import url("../assets/css/public.css");
</style>
